cr-mdw-ux

(0 reviews)

OTT - Create Entitlement

/{businessId}/product

[POST]

This usecase is to create an subscription for multiple OTTs in Bango or ToolBox systems

URL
https://nonprod.lcr.esb.cloud.lla.com/test/cr-mdw-ux-lcr/cr-mdw-ux/v1/{businessId}/product
URI Params
nametypedescriptionrequired
businessIdstringDefault CR for Costa RicaY
Headers
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Y

Body

Definitions - Bundle

NameTypeDescriptionRequired
isBundleBooleanIndicates whether the product is a bundle (true or false).Y
billingAccount.idstringUnique identifier of the billing account.Y
billingAccount.contact[].contactTypeStringType of contact associated with the billing account (Example: primary).N
billingAccount.contact[].contactMedium[].characteristic.emailAddressStringEmail address to send the activation link to the customer.Y
billingAccount.@baseTypeStringBase type of the billing account entity. Default: billingAccount.N
billingAccount.@typeStringType of the billing account entity. Default: billingAccount.N
productSpecification.idstringproduct code. Default: Bundle1234Y
productSpecification.namestringMerchant key associated with the product. Default: BUNDLEY
productRelationship[].relationshipTypestringRelationship type of the product. Default: bundled.Y
productRelationship[].product.productSpecification.idstringDisney/Universal/Amazon/Hbo Max product code.Y
productRelationship[].product.productSpecification.namestringMerchant key associated with the product (Example: DISNEY).Y
productRelationship[].product.productCharacteristic[].namestringcharacteristic for flagEmail to determine whether to send email or not. Default: flagEmailN
productRelationship[].product.productCharacteristic[].valueBooleanValue of the flagEmail characteristic (true or false)N
productRelationship[].product.@baseTypestringBase type of the related product. Default: Product.N
productRelationship[].product.@typestringType of the related product. Default: OTT.Y
@baseTypestringBase type of the product. Default: Product.N
@typestringType of the product. Default: OTT.Y
realizingResource[].idstringMSISDN associated with the customer to send notifications toN
realizingResource[].namestringName of the resource. Default: 'MSISDN'N
realizingResource[].@typestringType of the realizing resource. Default: ResourceRef.N
realizingResource[].@baseTypestringBase Type of the realizing resource. Default: Resource.N
realizingResource[].@referredTypestringReferred Type of the realizing resource. Default: Resource.N

Definitions - Amazon Standalone

NameTypeDescriptionRequired
billingAccount.idStringUnique identifier of the billing account.Y
productSpecification.idStringAmazon Product code.Y
productSpecification.nameStringMerchant key associated with the product. Default: AmazonY
@baseTypeStringBase type of the entity. Default: Product.N
@typeStringType of the entity. Default: OTT.Y
relatedParty[].idStringEmail address to send the activation link to the customer.Y
relatedParty[].@referredTypeStringType of the related party. Default: Individual.Y
realizingResource[].idstringMSISDN associated with the customer to send notifications toN
realizingResource[].namestringName of the resource. Default: 'MSISDN'N
realizingResource[].@typestringType of the realizing resource. Default: ResourceRef.N
realizingResource[].@baseTypestringBase Type of the realizing resource. Default: Resource.N
realizingResource[].@referredTypestringReferred Type of the realizing resource. Default: Resource.N

Definitions - Universal Standalone

NameTypeDescriptionRequired
billingAccount.idStringUnique identifier of the billing account.Y
productSpecification.idStringUniversal Product code.Y
productSpecification.nameStringMerchant key associated with the product. Default: UniversalY
@baseTypeStringBase type of the entity. Default: Product.N
@typeStringType of the entity. Default: OTT.Y
relatedParty[].idStringEmail address to send the activation link to the customer.Y
relatedParty[].@referredTypeStringType of the related party. Default: Individual.Y

Definitions - Disney Standalone

NameTypeDescriptionRequired
productSpecification.idStringDisney Product code.Y
productSpecification.nameStringDisplay name of the product specification (Example: 30 days Disney Plus).Y
@baseTypeStringBase type of the entity. Default: Product.Y
@typeStringType of the entity. Default: OTT.Y
@referredTypeStringDeprecated. Previously used to identify the merchant type (Example: DISNEY). This field will no longer be used in new implementations.N
billingAccount.idStringUnique identifier of the billing account.Y
billingAccount.contact[].contactTypeStringType of contact associated with the billing account (Example: primary).N
billingAccount.contact[].contactMedium[].characteristic.emailAddressStringEmail address to send the activation link to the customer.Y
billingAccount.@baseTypeStringBase type of the billing account entity. Default: billingAccount.N
billingAccount.@typeStringType of the billing account entity. Default: billingAccount.N

Definitions - HBO Max Standalone

NameTypeDescriptionRequired
isBundleBooleanIndicates whether the product is a bundle (true or false).Y
billingAccount.idStringUnique identifier of the billing account.Y
billingAccount.contact[].contactTypeStringType of contact associated with the billing account (Example: primary).N
billingAccount.contact[].contactMedium[].characteristic.emailAddressStringEmail address to send the activation link to the customer.N
billingAccount.@baseTypeStringBase type of the billing account entity. Default: billingAccount.N
billingAccount.@typeStringType of the billing account entity. Default: billingAccount.N
productSpecification.idStringHBO Max Product code.Y
productSpecification.nameStringMerchant key associated with the product.Y
productCharacteristic[].namestringcharacteristic for flagEmail to determine whether to send email or not. Default: flagEmailN
productCharacteristic[].valueBooleanValue of the flagEmail characteristic (true or false)N
@baseTypeStringBase type of the entity. Default: Product.N
@typeStringType of the entity. Default: OTT.Y
realizingResource[].idstringMSISDN associated with the customer to send notifications toN
realizingResource[].namestringName of the resource. Default: 'MSISDN'N
realizingResource[].@typestringType of the realizing resource. Default: ResourceRef.N
realizingResource[].@baseTypestringBase Type of the realizing resource. Default: Resource.N
realizingResource[].@referredTypestringReferred Type of the realizing resource. Default: Resource.N
Note:

The usage of the email address in the field relatedParty.id is deprecated and for all the usecases it is moved to billingAccount.contact[].contactMedium[].characteristic.emailAddress.

cURL request - BUNDLE
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/test/cr-mdw-ux-lcr/cr-mdw-ux/v1/{businessId}/product' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_id: XXXXX' \
--header 'client_secret: XXXXX' \
--header 'Content-Type: application/json' \
--data-raw '{
    "isBundle": true,
    "productSpecification": {
        "id": "Bundle1234",
        "name": "BUNDLE"
    },
    "productRelationship": [
        {
            "relationshipType": "bundled",
            "product": {
                "productSpecification": {
                    "id": "disneyPlus",
                    "name": "DISNEY"
                },
                "@baseType": "Product",
                "@type": "OTT"
            }
        },
        {
            "relationshipType": "bundled",
            "product": {
                "productSpecification": {
                    "id": "universalPlus",
                    "name": "UNIVERSAL"
                },
                "@baseType": "Product",
                "@type": "OTT"
            }
        },
        {
            "relationshipType": "bundled",
            "product": {
                "productSpecification": {
                    "id": "amazonPrime",
                    "name": "AMAZON"
                },
                "@baseType": "Product",
                "@type": "OTT"
            }
        },
        {
            "relationshipType": "bundled",
            "product": {
                "productSpecification": {
                    "id": "HboMax",
                    "name": "HBO"
                },
                "productCharacteristic": [
                    {
                        "name": "flagEmail",
                        "value": false
                    }
                ],
                "@baseType": "Product",
                "@type": "OTT"
            }
        }
    ],
    "@baseType": "Product",
    "@type": "OTT",
    "billingAccount": {
        "id": "1101523732142",
        "contact": [
            {
                "contactType": "primary",
                "contactMedium": [
                    {
                        "characteristic": {
                            "emailAddress": "test@xyz.com"
                        }
                    }
                ]
            }
        ]
    },
    "realizingResource": [
        {
            "id": "12345678",
            "name": "MSISDN",
            "@baseType": "resource",
            "@type": "ResourceRef",
            "@referredType": "resource"
        }
    ]
}'
Response - BUNDLE
{
    "status": "created",
    "isBundle": true,
    "productSpecification": {
        "id": "Bundle1234",
        "name": "BUNDLE"
    },
    "productRelationship": [
        {
            "relationshipType": "bundled",
            "product": {
                "id": "de9792a7-5ce8-45bd-b553-2600a665f275",
                "productSpecification": {
                    "id": "disneyPlus",
                    "name": "DISNEY"
                },
                "productCharacteristic": [
                    {
                        "name": "activationUrl",
                        "value": "https://www.disney.com"
                    }
                ],
                "@baseType": "Product",
                "@type": "OTT"
            }
        },
        {
            "relationshipType": "bundled",
            "product": {
                "id": "af5692a7-5ce8-45bd-b553-2600a665f275",
                "productSpecification": {
                    "id": "universalPlus",
                    "name": "UNIVERSAL"
                },
                "productCharacteristic": [
                    {
                        "name": "activationUrl",
                        "value": "https://www.universal.com"
                    }
                ],
                "@baseType": "Product",
                "@type": "OTT"
            }
        },
        {
            "relationshipType": "bundled",
            "product": {
                "id": "af5692a7-5ce8-45bd-b553-2600a665f275",
                "productSpecification": {
                    "id": "amazonPrime",
                    "name": "AMAZON"
                },
                "productCharacteristic": [
                    {
                        "name": "activationUrl",
                        "value": "https://www.amazon.com"
                    },
                ],
                "@baseType": "Product",
                "@type": "OTT"
            }
        },
        {
            "relationshipType": "bundled",
            "product": {
                "id": "af5692a7-5ce8-45bd-b553-2600a665f275",
                "productSpecification": {
                    "id": "HboMax",
                    "name": "HBO"
                },
                "productCharacteristic": [
                    {
                        "name": "activationUrl",
                        "value": "https://www.hbo.com"
                    },
                    {
                        "name": "flagEmail",
                        "value": false
                    }
                ],
                "@baseType": "Product",
                "@type": "OTT"
            }
        }
    ],
    "@baseType": "Product",
    "@type": "OTT",
    "billingAccount": {
        "id": "1101523732142",
        "contact": [
            {
                "contactType": "primary",
                "contactMedium": [
                    {
                        "characteristic": {
                            "emailAddress": "test@xyz.com"
                        }
                    }
                ]
            }
        ]
    },
    "realizingResource": [
        {
            "id": "12345678",
            "name": "MSISDN",
            "@baseType": "resource",
            "@type": "ResourceRef",
            "@referredType": "resource"
        }
    ]
}
cURL request - HBO Max Standalone
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/test/cr-mdw-ux-lcr/cr-mdw-ux/v1/{businessId}/product' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_id: XXXXX' \
--header 'client_secret: XXXXX' \
--header 'Content-Type:  application/json' \
--data-raw '{
  "isBundle": false,
  "productSpecification": {
    "id": "HboMax",
    "name": "HBO"
  },
  "productCharacteristic":[{
    "name": "flagEmail",
    "value": true
  }],
  "@baseType": "Product",
  "@type": "OTT",
  "billingAccount": {
        "id": "1101523732142",
        "contact": [
            {
                "contactType": "primary",
                "contactMedium": [
                    {
                        "characteristic": {
                            "emailAddress": "test@xyz.com"
                        }
                    }
                ]
            }
        ]
    },
  "realizingResource": [
    {
      "id": "12345678",
      "name": "MSISDN",
      "@baseType": "Resource",
      "@type": "ResourceRef",
      "@referredType": "Resource"
    }
  ]
}'
Response - HBO Max Standalone
{
    "id": "g8o8ebd6-02f7-4d3f-942e-904344e8cde5",
    "status": "created",
    "isBundle": false,
    "productSpecification": {
        "id": "HboMax",
        "name": "HBO"
    },
    "productCharacteristic": [
        {
            "name": "activationUrl",
            "value": "https://www.hbo.com"
        },
        {
            "name": "flagEmail",
            "value": true
        }
    ],
    "@baseType": "Product",
    "@type": "OTT",
    "billingAccount": {
        "id": "1101523732142",
        "contact": [
            {
                "contactType": "primary",
                "contactMedium": [
                    {
                        "characteristic": {
                            "emailAddress": "test@xyz.com"
                        }
                    }
                ]
            }
        ]
    },
    "realizingResource": [
        {
            "id": "12345678",
            "name": "MSISDN",
            "@baseType": "Resource",
            "@type": "ResourceRef",
            "@referredType": "Resource"
        }
    ]
}
cURL request - Amazon Standalone
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/test/cr-mdw-ux-lcr/cr-mdw-ux/v1/{businessId}/product' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_id: XXXXX' \
--header 'client_secret: XXXXX' \
--header 'Content-Type:  application/json' \
--data-raw '{
  "isBundle": false,
  "productSpecification": {
    "id": "amazonPrime",
    "name": "AMAZON"
  },
  "@baseType": "Product",
  "@type": "OTT",
  "billingAccount": {
    "id": "1101523732142"
  },
  "relatedParty": [
    {
      "id": "test@xyz.com",
      "@referredType": "Individual"
    }
  ],
  "realizingResource": [
    {
      "id": "12345678",
      "name": "MSISDN",
      "@baseType": "resource",
      "@type": "ResourceRef",
      "@referredType": "resource"
    }
  ]
}'
Response - Amazon Standalone
{
    "id": "g8o8ebd6-02f7-4d3f-942e-904344e8cde5",
    "status": "created",
    "isBundle": false,
    "productSpecification": {
        "id": "amazonPrime",
        "name": "AMAZON"
    },
    "productCharacteristic": [
        {
            "name": "activationUrl",
            "value": "https://www.amazon.com"
        }
    ],
    "@baseType": "Product",
    "@type": "OTT",
    "billingAccount": {
        "id": "1101523732142"
    },
    "relatedParty": [
        {
            "id": "test@xyz.com",
            "@referredType": "Individual"
        }
    ],
    "realizingResource": [
        {
            "id": "12345678",
            "name": "MSISDN",
            "@baseType": "resource",
            "@type": "ResourceRef",
            "@referredType": "resource"
        }
    ]
}
cURL request - Univaersal Standalone
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/test/cr-mdw-ux-lcr/cr-mdw-ux/v1/{businessId}/product' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_id: XXXXX' \
--header 'client_secret: XXXXX' \
--header 'Content-Type:  application/json' \
--data-raw '{
  "isBundle": false,
  "productSpecification": {
    "id": "UniversalPlus",
    "name": "UNIVERSAL"
  },
  "@baseType": "Product",
  "@type": "OTT",
  "billingAccount": {
    "id": "1101523732142"
  },
  "relatedParty": [
    {
      "id": "test@xyz.com",
      "@referredType": "Individual"
    }
  ]
}'
Response - Universal Standalone
{
    "isBundle": false,
    "productSpecification": {
        "id": "UniversalPlus",
        "name": "UNIVERSAL"
    },
    "productCharacteristic": [
        {
            "name": "activationUrl",
            "value": "https://www.universal.com"
        }
    ],
    "@baseType": "Product",
    "@type": "OTT",
    "billingAccount": {
        "id": "1101523732142"
    },
    "relatedParty": [
        {
            "id": "test@xyz.com",
            "@referredType": "Individual"
        }
    ]
}
cURL request - Disney Standalone
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/test/cr-mdw-ux-lcr/cr-mdw-ux/v1/{businessId}/product' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_id: XXXXX' \
--header 'client_secret: XXXXX' \
--header 'Content-Type:  application/json' \
--data-raw '
{
    "productSpecification": {
        "id": "disneyPlus",
        "name": "30 days Disney Plus"
    },
    "@baseType": "Product",
    "@type": "OTT",
    "@referredType": "DISNEY",
    "billingAccount": {
        "id": "1101523732142",
        "contact": [
            {
                "contactType": "primary",
                "contactMedium": [
                    {
                        "characteristic": {
                            "emailAddress": "test@xyz.com"
                        }
                    }
                ]
            }
        ],
        "@baseType": "billingAccount",
        "@type": "billingAccount"
    }
}'
Response - Disney Standalone
{
    "id": "g8o8ebd6-02f7-4d3f-942e-904344e8cde5",
    "status": "created",
    "productSpecification": {
        "id": "disneyPlus",
        "name": "30 days Disney Plus"
    },
    "productCharacteristic": [
        {
            "name": "activationUrl",
            "value": "https://www.disney.com"
        }
    ],
    "@baseType": "Product",
    "@type": "OTT",
    "@referredType": "DISNEY",
    "billingAccount": {
        "id": "1101523732142",
        "contact": [
            {
                "contactType": "primary",
                "contactMedium": [
                    {
                        "characteristic": {
                            "emailAddress": "test@xyz.com"
                        }
                    }
                ]
            }
        ],
        "@baseType": "billingAccount",
        "@type": "billingAccount"
    }
}

Reviews